package com.example.kotlintest

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val test=TestClass()
        test.home="别墅"
        test.getName()
        Log.d("数据",test.toStr())
        test.growPeo()
        Log.d("数据",test.toStr())
        test.noHome()
        Log.d("数据",test.toStr())
    }

}